
book-01:     file format elf64-littleaarch64


Disassembly of section .init:

0000000000400538 <_init>:
  400538:	a9bf7bfd 	stp	x29, x30, [sp, #-16]!
  40053c:	910003fd 	mov	x29, sp
  400540:	9400003a 	bl	400628 <call_weak_fn>
  400544:	a8c17bfd 	ldp	x29, x30, [sp], #16
  400548:	d65f03c0 	ret

Disassembly of section .plt:

0000000000400550 <.plt>:
  400550:	a9bf7bf0 	stp	x16, x30, [sp, #-16]!
  400554:	90000090 	adrp	x16, 410000 <__FRAME_END__+0xf758>
  400558:	f947fe11 	ldr	x17, [x16, #4088]
  40055c:	913fe210 	add	x16, x16, #0xff8
  400560:	d61f0220 	br	x17
  400564:	d503201f 	nop
  400568:	d503201f 	nop
  40056c:	d503201f 	nop

0000000000400570 <exit@plt>:
  400570:	b0000090 	adrp	x16, 411000 <exit@GLIBC_2.17>
  400574:	f9400211 	ldr	x17, [x16]
  400578:	91000210 	add	x16, x16, #0x0
  40057c:	d61f0220 	br	x17

0000000000400580 <perror@plt>:
  400580:	b0000090 	adrp	x16, 411000 <exit@GLIBC_2.17>
  400584:	f9400611 	ldr	x17, [x16, #8]
  400588:	91002210 	add	x16, x16, #0x8
  40058c:	d61f0220 	br	x17

0000000000400590 <__libc_start_main@plt>:
  400590:	b0000090 	adrp	x16, 411000 <exit@GLIBC_2.17>
  400594:	f9400a11 	ldr	x17, [x16, #16]
  400598:	91004210 	add	x16, x16, #0x10
  40059c:	d61f0220 	br	x17

00000000004005a0 <__gmon_start__@plt>:
  4005a0:	b0000090 	adrp	x16, 411000 <exit@GLIBC_2.17>
  4005a4:	f9400e11 	ldr	x17, [x16, #24]
  4005a8:	91006210 	add	x16, x16, #0x18
  4005ac:	d61f0220 	br	x17

00000000004005b0 <abort@plt>:
  4005b0:	b0000090 	adrp	x16, 411000 <exit@GLIBC_2.17>
  4005b4:	f9401211 	ldr	x17, [x16, #32]
  4005b8:	91008210 	add	x16, x16, #0x20
  4005bc:	d61f0220 	br	x17

00000000004005c0 <puts@plt>:
  4005c0:	b0000090 	adrp	x16, 411000 <exit@GLIBC_2.17>
  4005c4:	f9401611 	ldr	x17, [x16, #40]
  4005c8:	9100a210 	add	x16, x16, #0x28
  4005cc:	d61f0220 	br	x17

00000000004005d0 <printf@plt>:
  4005d0:	b0000090 	adrp	x16, 411000 <exit@GLIBC_2.17>
  4005d4:	f9401a11 	ldr	x17, [x16, #48]
  4005d8:	9100c210 	add	x16, x16, #0x30
  4005dc:	d61f0220 	br	x17

Disassembly of section .text:

00000000004005e0 <_start>:
  4005e0:	d280001d 	mov	x29, #0x0                   	// #0
  4005e4:	d280001e 	mov	x30, #0x0                   	// #0
  4005e8:	aa0003e5 	mov	x5, x0
  4005ec:	f94003e1 	ldr	x1, [sp]
  4005f0:	910023e2 	add	x2, sp, #0x8
  4005f4:	910003e6 	mov	x6, sp
  4005f8:	580000c0 	ldr	x0, 400610 <_start+0x30>
  4005fc:	580000e3 	ldr	x3, 400618 <_start+0x38>
  400600:	58000104 	ldr	x4, 400620 <_start+0x40>
  400604:	97ffffe3 	bl	400590 <__libc_start_main@plt>
  400608:	97ffffea 	bl	4005b0 <abort@plt>
  40060c:	00000000 	.inst	0x00000000 ; undefined
  400610:	004006dc 	.word	0x004006dc
  400614:	00000000 	.word	0x00000000
  400618:	00400788 	.word	0x00400788
  40061c:	00000000 	.word	0x00000000
  400620:	00400808 	.word	0x00400808
  400624:	00000000 	.word	0x00000000

0000000000400628 <call_weak_fn>:
  400628:	90000080 	adrp	x0, 410000 <__FRAME_END__+0xf758>
  40062c:	f947f000 	ldr	x0, [x0, #4064]
  400630:	b4000040 	cbz	x0, 400638 <call_weak_fn+0x10>
  400634:	17ffffdb 	b	4005a0 <__gmon_start__@plt>
  400638:	d65f03c0 	ret
  40063c:	00000000 	.inst	0x00000000 ; undefined

0000000000400640 <deregister_tm_clones>:
  400640:	b0000080 	adrp	x0, 411000 <exit@GLIBC_2.17>
  400644:	91012000 	add	x0, x0, #0x48
  400648:	b0000081 	adrp	x1, 411000 <exit@GLIBC_2.17>
  40064c:	91012021 	add	x1, x1, #0x48
  400650:	eb00003f 	cmp	x1, x0
  400654:	540000a0 	b.eq	400668 <deregister_tm_clones+0x28>  // b.none
  400658:	90000001 	adrp	x1, 400000 <_init-0x538>
  40065c:	f9441421 	ldr	x1, [x1, #2088]
  400660:	b4000041 	cbz	x1, 400668 <deregister_tm_clones+0x28>
  400664:	d61f0020 	br	x1
  400668:	d65f03c0 	ret
  40066c:	d503201f 	nop

0000000000400670 <register_tm_clones>:
  400670:	b0000080 	adrp	x0, 411000 <exit@GLIBC_2.17>
  400674:	91012000 	add	x0, x0, #0x48
  400678:	b0000081 	adrp	x1, 411000 <exit@GLIBC_2.17>
  40067c:	91012021 	add	x1, x1, #0x48
  400680:	cb000021 	sub	x1, x1, x0
  400684:	9343fc21 	asr	x1, x1, #3
  400688:	8b41fc21 	add	x1, x1, x1, lsr #63
  40068c:	9341fc21 	asr	x1, x1, #1
  400690:	b40000a1 	cbz	x1, 4006a4 <register_tm_clones+0x34>
  400694:	90000002 	adrp	x2, 400000 <_init-0x538>
  400698:	f9441842 	ldr	x2, [x2, #2096]
  40069c:	b4000042 	cbz	x2, 4006a4 <register_tm_clones+0x34>
  4006a0:	d61f0040 	br	x2
  4006a4:	d65f03c0 	ret

00000000004006a8 <__do_global_dtors_aux>:
  4006a8:	a9be7bfd 	stp	x29, x30, [sp, #-32]!
  4006ac:	910003fd 	mov	x29, sp
  4006b0:	f9000bf3 	str	x19, [sp, #16]
  4006b4:	b0000093 	adrp	x19, 411000 <exit@GLIBC_2.17>
  4006b8:	39412260 	ldrb	w0, [x19, #72]
  4006bc:	35000080 	cbnz	w0, 4006cc <__do_global_dtors_aux+0x24>
  4006c0:	97ffffe0 	bl	400640 <deregister_tm_clones>
  4006c4:	52800020 	mov	w0, #0x1                   	// #1
  4006c8:	39012260 	strb	w0, [x19, #72]
  4006cc:	f9400bf3 	ldr	x19, [sp, #16]
  4006d0:	a8c27bfd 	ldp	x29, x30, [sp], #32
  4006d4:	d65f03c0 	ret

00000000004006d8 <frame_dummy>:
  4006d8:	17ffffe6 	b	400670 <register_tm_clones>

00000000004006dc <main>:
  4006dc:	a9be7bfd 	stp	x29, x30, [sp, #-32]!
  4006e0:	910003fd 	mov	x29, sp
  4006e4:	b9001fa0 	str	w0, [x29, #28]
  4006e8:	f9000ba1 	str	x1, [x29, #16]
  4006ec:	b9401fa0 	ldr	w0, [x29, #28]
  4006f0:	7100081f 	cmp	w0, #0x2
  4006f4:	54000080 	b.eq	400704 <main+0x28>  // b.none
  4006f8:	90000000 	adrp	x0, 400000 <_init-0x538>
  4006fc:	9120e000 	add	x0, x0, #0x838
  400700:	97ffffa0 	bl	400580 <perror@plt>
  400704:	90000000 	adrp	x0, 400000 <_init-0x538>
  400708:	91214000 	add	x0, x0, #0x850
  40070c:	97ffffad 	bl	4005c0 <puts@plt>
  400710:	90000000 	adrp	x0, 400000 <_init-0x538>
  400714:	9121a000 	add	x0, x0, #0x868
  400718:	52800001 	mov	w1, #0x0                   	// #0
  40071c:	9400000e 	bl	400754 <pr_sysconf>
  400720:	90000000 	adrp	x0, 400000 <_init-0x538>
  400724:	9121e000 	add	x0, x0, #0x878
  400728:	52801fe1 	mov	w1, #0xff                  	// #255
  40072c:	97ffffa9 	bl	4005d0 <printf@plt>
  400730:	f9400ba0 	ldr	x0, [x29, #16]
  400734:	91002000 	add	x0, x0, #0x8
  400738:	f9400001 	ldr	x1, [x0]
  40073c:	90000000 	adrp	x0, 400000 <_init-0x538>
  400740:	91226000 	add	x0, x0, #0x898
  400744:	52800022 	mov	w2, #0x1                   	// #1
  400748:	94000009 	bl	40076c <pr_pathconf>
  40074c:	52800000 	mov	w0, #0x0                   	// #0
  400750:	97ffff88 	bl	400570 <exit@plt>

0000000000400754 <pr_sysconf>:
  400754:	d10043ff 	sub	sp, sp, #0x10
  400758:	f90007e0 	str	x0, [sp, #8]
  40075c:	b90007e1 	str	w1, [sp, #4]
  400760:	d503201f 	nop
  400764:	910043ff 	add	sp, sp, #0x10
  400768:	d65f03c0 	ret

000000000040076c <pr_pathconf>:
  40076c:	d10083ff 	sub	sp, sp, #0x20
  400770:	f9000fe0 	str	x0, [sp, #24]
  400774:	f9000be1 	str	x1, [sp, #16]
  400778:	b9000fe2 	str	w2, [sp, #12]
  40077c:	d503201f 	nop
  400780:	910083ff 	add	sp, sp, #0x20
  400784:	d65f03c0 	ret

0000000000400788 <__libc_csu_init>:
  400788:	a9bc7bfd 	stp	x29, x30, [sp, #-64]!
  40078c:	910003fd 	mov	x29, sp
  400790:	a901d7f4 	stp	x20, x21, [sp, #24]
  400794:	90000094 	adrp	x20, 410000 <__FRAME_END__+0xf758>
  400798:	90000095 	adrp	x21, 410000 <__FRAME_END__+0xf758>
  40079c:	91374294 	add	x20, x20, #0xdd0
  4007a0:	913722b5 	add	x21, x21, #0xdc8
  4007a4:	a902dff6 	stp	x22, x23, [sp, #40]
  4007a8:	cb150294 	sub	x20, x20, x21
  4007ac:	f9001ff8 	str	x24, [sp, #56]
  4007b0:	2a0003f6 	mov	w22, w0
  4007b4:	aa0103f7 	mov	x23, x1
  4007b8:	9343fe94 	asr	x20, x20, #3
  4007bc:	aa0203f8 	mov	x24, x2
  4007c0:	97ffff5e 	bl	400538 <_init>
  4007c4:	b4000194 	cbz	x20, 4007f4 <__libc_csu_init+0x6c>
  4007c8:	f9000bb3 	str	x19, [x29, #16]
  4007cc:	d2800013 	mov	x19, #0x0                   	// #0
  4007d0:	f8737aa3 	ldr	x3, [x21, x19, lsl #3]
  4007d4:	aa1803e2 	mov	x2, x24
  4007d8:	aa1703e1 	mov	x1, x23
  4007dc:	2a1603e0 	mov	w0, w22
  4007e0:	91000673 	add	x19, x19, #0x1
  4007e4:	d63f0060 	blr	x3
  4007e8:	eb13029f 	cmp	x20, x19
  4007ec:	54ffff21 	b.ne	4007d0 <__libc_csu_init+0x48>  // b.any
  4007f0:	f9400bb3 	ldr	x19, [x29, #16]
  4007f4:	a941d7f4 	ldp	x20, x21, [sp, #24]
  4007f8:	a942dff6 	ldp	x22, x23, [sp, #40]
  4007fc:	f9401ff8 	ldr	x24, [sp, #56]
  400800:	a8c47bfd 	ldp	x29, x30, [sp], #64
  400804:	d65f03c0 	ret

0000000000400808 <__libc_csu_fini>:
  400808:	d65f03c0 	ret

Disassembly of section .fini:

000000000040080c <_fini>:
  40080c:	a9bf7bfd 	stp	x29, x30, [sp, #-16]!
  400810:	910003fd 	mov	x29, sp
  400814:	a8c17bfd 	ldp	x29, x30, [sp], #16
  400818:	d65f03c0 	ret
